Interface IDungeonRegistry

All Known Implementing Classes:
DungeonRegistryImpl

public interface IDungeonRegistry
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    registerCategory(String category, String localization)
    Add a new category IDungeonRegistry.registerCategory("chest/chest_type", "localization.string");
    void
    registerChest(String category, net.minecraft.resources.ResourceLocation tableLocation)
     
    void
    registerChest(String category, net.minecraft.world.level.storage.loot.LootTable lootTable)
     
  • Method Details

    • registerCategory

      void registerCategory(@Nonnull String category, @Nonnull String localization)
      Add a new category IDungeonRegistry.registerCategory("chest/chest_type", "localization.string");
      Parameters:
      category - the category name
      localization - the translation key
    • registerChest

      void registerChest(@Nonnull String category, @Nonnull net.minecraft.resources.ResourceLocation tableLocation)
      Parameters:
      category - can be a localization string directly or a registered category
      tableLocation - the ResourceLocation of the loot table
    • registerChest

      void registerChest(@Nonnull String category, @Nonnull net.minecraft.world.level.storage.loot.LootTable lootTable)
      Parameters:
      category - can be a localization string directly or a registered category
      lootTable - the actual LootTable